$geturl=addslashes($_GET['url']);
$gettab=addslashes($_GET['tab']);
$getdomain=addslashes($_GET['url']);
if ($geturl==''){header("Location: http://siteanalyticstools.com");}
$domain=addslashes($getdomain);
$domain = strtolower($domain);
$domain = trim($domain); //remove space from start and end of domain
if(substr(strtolower($domain), 0, 8) == "https://") $domain = substr($domain, 8); // remove http:// if included
if(substr(strtolower($domain), 0, 7) == "http://") $domain = substr($domain, 7); // remove http:// if included
if(substr(strtolower($domain), 0, 4) == "www.") $domain = substr($domain, 4);//remove www from domain
if(preg_match("/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/",$domain));
$hurl='http://'.$domain;
$justdomain=$domain;
$getdomain=$justdomain;
$datah = parse_url($hurl);
$hosth = $datah['host'];
$hostnameh = explode(".", $hosth);
$domainh = $hostnameh[count($hostnameh)-2] . "." . $hostnameh[count($hostnameh)-1];
$hurl='http://'.$domainh;
$justdomain=$domainh;
$getdomain=$domainh;
if ($gettab=='')
{
$rlistingidurl="http://siteanalyticstools.com/report/".$getdomain;
}
if ($gettab!='')
{
$rlistingidurl="http://siteanalyticstools.com/report/".$getdomain."/".$gettab;
}
function curPageURL() {
$pageURL = 'http';
//if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
$rdurl=curPageURL();
$url=$rdurl;
if (false !== strpos($url,'report.php')) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$rlistingidurl."");
exit;
} else {
echo '';
}
if(stristr($_SERVER['HTTP_USER_AGENT'], "Mobile")){ $ismobile='yes'; } else { $ismobile='no'; }
?>
include 'include/db.php'; $con = mysqli_connect("localhost","siteanalyticstools","falco","siteanalyticstools");
$conn = mysqli_connect("localhost","siteanalyticstools","falco","siteanalyticstools"); ?>
if ($gettab=='') { ?>
Site Analytics Tools: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
if ($gettab=='DNS') { ?>
DNS Analytics: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
if ($gettab=='HTTP') { ?>
HTTP Headers Analytics: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
if ($gettab=='domain') { ?>
Domain Name Analytics: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
if ($gettab=='metatags') { ?>
Meta Tag Analytics: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
if ($gettab=='SSL') { ?>
SSL Certificate Analytics: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
if ($gettab=='code') { ?>
Source Code: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
if ($gettab=='analytics') { ?>
Website Analytics: echo $justdomain; ?> - SiteAnalyticsTools.com
} ?>
include 'include/ga.php'; ?>
//echo '
';
//echo $domainh;
//echo '
';
?>
$ispagemenu=0; ?>
include 'include/menu.php'; ?>
include 'include/footer.php'; ?>